import { http } from '@/utils/http/axios';

/**
 * @description: 获取列表
 */
export function list(params) {
    return http.request({
        url: '/users/list',
        method: 'GET',
        params
    });
}

/**
 * @description: 详情
 */
export function info(params) {
    return http.request({
        url: '/users/info',
        method: 'GET',
        params
    });
}

/**
 * 编辑
 */
export function edit(params) {
    return http.request({
        url: '/users/edit',
        method: 'POST',
        params
    })
}

/**
 * 提现、退款
 */
export function Cash(params) {
    return http.request({
        url: '/xcxmoney/cash',
        method: 'POST',
        params
    })
}

/**
 * 充值
 */
export function Recharge(params) {
    return http.request({
        url: '/xcxmoney/rechargesd',
        method: 'POST',
        params
    })
}

/**
 * 支付宝提现、退款
 */
export function Cashalipay(params) {
    return http.request({
        url: '/alipay/cash',
        method: 'POST',
        params
    })
}
